<?php
include('../../common.php');
if($_SESSION['log_islogin'] == 'yes' ){

	$listid = mysql_real_escape_string($_GET['listid']);
	$transportid = intval(mysql_real_escape_string($_GET['transportid']));
	if($listid != "" && $transportid > 0){
		$TPDids = explode(",", $listid);
			
		foreach ($TPDids as $i) {		
			$sqlUpdTPD = "  UPDATE transport_package_delivering  set tpd_trn_id = '$transportid' , tpd_modified_date = NOW(), tpd_modified_by='$_SESSION[log_userlogin_id]'
							   where tpd_id = '$i' ";
			$resUpdTPD = $db->sql_query($sqlUpdTPD);
		}	
			echo '1';
	}else
			echo '0';
}else{
	echo 'Dude!';
}
?>